package com.example.demo.service;

import org.springframework.stereotype.Service;

import com.example.demo.model.UserInfo;
@Service
public class UserService {

	public Boolean login(UserInfo user) {
		if(null!=user) {
			if(user.getUsername().equals("bear")&&user.getPassword().equals("123456")) {
				return true;
			}
		}
		return false;
	}

}
